package com.ayf.payment.game.api.service;

import com.ayf.payment.game.api.dto.GroupsDTO;
import com.ayf.payment.game.api.dto.criteria.GroupsSelectCriteria;
import com.ayf.payment.game.api.entity.Groups;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface GroupsService {

    public List<GroupsDTO> selectByDTO(Integer merchantId);

    public int save(Groups t);

    public void update(Groups t);

    public void delete(GroupsDTO groupsDTO);

    public Groups find(Integer merchantId, String id);

    public GroupsDTO findDTO(Integer merchantId, String id);

    /**
     * 查询出分组信息
     *
     * @param groupsSelectCriteria
     * @return
     */
    List<GroupsDTO> selectGroupInfo(GroupsSelectCriteria groupsSelectCriteria);

    /**
     * 添加推广员分组
     *
     * @param groups
     * @return
     */
    @Transactional
    String addTuiGroup(Groups groups);

    List<GroupsDTO> selectList(GroupsDTO groupsDTO);

}


